package org.dfyy.postgisdemo.uitls;

import lombok.Data;
import lombok.Setter;

/**
 * @author 书山
 * @version 1.0
 * @date 2024-04-16 11:21
 */

@Data
public class ResultUtil<T> {
    private String success;
    private String errorCode;
    private String msg;
    private T data;


    private ResultUtil() {
    }

    public ResultUtil(String errCode, T data) {
        this.errorCode = errCode;
        this.data = data;
    }


    public ResultUtil(String errCode, String msg) {
        this.errorCode = errCode;
        this.msg = msg;
    }

    public ResultUtil(String success, String errCode, String msg) {
        this.success = success;
        this.errorCode = errCode;
        this.msg = msg;
    }
}
